package cn.gdsdxy.service;

import cn.gdsdxy.dao.UserMapper;
import cn.gdsdxy.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public int getusername(String username){
        return userMapper.getusername(username);
    }
    public int adduser(User user){return userMapper.adduser(user);}
    public int checkuser(User user){return  userMapper.checkuser(user);}
    public int deleteUser(String username){return userMapper.deleteUser(username);}
    public int updatauser(User user){return userMapper.updatauser(user);}

}
